package com.pn.taikao.service;

import com.pn.taikao.entity.Class;

import java.util.List;

public interface ClassService {
    Long createClass(Class clazz);

    void updateClass(Class clazz);

    void deleteClass(Long id);

    Class getById(Long id);

    List<Class> getByMajorId(Long majorId);

    List<Class> list(String name, Long majorId, int page, int size);

    long count(String name, Long majorId);
}